package pkg

import (
	"strconv"
	"strings"
)

func GetCtype_Size(tag string) int {
	arTag := strings.Split(tag, ",")
	for _, v := range arTag {
		arTmp := strings.Split(v, "=")
		//log.Println(arTmp)
		if arTmp[0] == "size" {
			n, _ := strconv.Atoi(arTmp[1])
			return n
		}
	}

	return 0
}
